<template>
  <div class="hot">
    <div class="home_title">人气推荐</div>
    <ul>
      <li v-for="item in hotArr" :key="item.id">
        <van-card
          :price="item.retail_price.toFixed(2)"
          :desc="item.goods_brief"
          :title="item.name"
          :thumb="item.list_pic_url"
        />
      </li>
    </ul>
  </div>
</template>
 
<script>
export default {
  props: ["hotArr"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.hot {
  margin-top: 20px;
  background-color: #fff;
}
ul {
  display: block;
  li {
    width: 100%;
    height: 100%;
    background-color: lightcoral;
  }
}
</style>